﻿# -*- coding: utf-8 -*-

import os

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

from controls import adminPages, userPages, adminAjax, userAjax

#template.register_template_library('django.contrib.humanize.templatetags.humanize') 

def main():
    application = webapp.WSGIApplication([
        ('/', userPages.MainPage),
        ('/admin/ajax', adminAjax.RPCHandler),
        ('/admin/bookmanagement', adminPages.BookManagementPage),
        ],debug=True)
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
